FROM golang:1.19.4-alpine

ENV TZ Asia/Shanghai

WORKDIR $GOPATH/application

COPY . $GOPATH/application

RUN go env -w GOPROXY=https://goproxy.io,direct

RUN go build -o $GOPATH/application/server main.go

ENTRYPOINT ["./server"]
